package com.onehouse.domain.room.repository;

import com.onehouse.domain.room.model.RoomPriceEntity;

import java.time.LocalDate;
import java.util.List;
import java.util.Optional;

public interface IRoomPriceRepository {
    int insert(RoomPriceEntity roomPrice);
    int insertByDateRange(RoomPriceEntity roomPrice, LocalDate startTime, LocalDate endTime);
    List<RoomPriceEntity> selectByRoomTypeId(Long roomTypeId);
    Optional<RoomPriceEntity> selectByTypeAndDate(RoomPriceEntity roomPrice);
    List<RoomPriceEntity> selectList(LocalDate startTime, LocalDate endTime);
    int deleteById(Long priceId);
    int updateByDate(RoomPriceEntity roomPriceEntity);
    int updateByDateRange(RoomPriceEntity roomPriceEntity, LocalDate startTime, LocalDate endTime);
}